remotemanager.logging_utils.verbosity module

Verbosity enables deeper verbose levels than True and False

class remotemanager.logging_utils.verbosity.Verbosity(level: None | int | bool | Verbosity = None)[source]

Class to store verbosity information

Initialise with Verbosity(level), where level is the integer level

Printing can be requested with Verbose.print(msg, level)

If the verbose level is set above level, the message will be printed

Parameters:

level (int, bool, Verbosity) – level above which to print

property value: int

Alias for self.level

print(message: str, level: int, end: str = '\n')[source]

Request that a message be printed. Compares against the set verbosity level before printing.

Parameters:
  • message (str) – message to print

  • level (int) – If this number is higher priority than (lower numeric value) (or equal to) the set limit, print

  • end (str) – print(…, end= …) hook